"""
@Project:${2108A}人工智能
@File:serializer.py
@Author:柴奇峰
@Date:20:16
"""
from rest_framework import serializers
from users.models import UserModel,Address

# 用户序列化
class UserSer(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = '__all__'


# class PachongSer(serializers.ModelSerializer):
#     class Meta:
#         model = Pachong
#         fields = '__all__'
# 收获地址
class AddrSer(serializers.ModelSerializer):
    class Meta:
        model=Address
        fields="__all__"




